package com.palmshop.online.wechat2;

import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class GetQRCode {
	/**
	   * 生成二维码图片并直接以流的形式输出到页面
	   * @param code_url
	   * @param response
	   */
	  @RequestMapping("/qr_code.img")
	  @ResponseBody
	  public void getQRCode3(String code_url,HttpServletResponse response){
	    GenerateQrCodeUtil.encodeQrcode(code_url, response);
	  }

}
